import iconList from "@/const/iconList";

export const tableOption = {
  printBtn: true,
  searchBtn: true,
  border: true,
  stripe: true,
  menuAlign: "center",
  align: "center",
  column: [
    {
      label: 'ID',
      prop: 'attrGroupId',
      addDisabled: true,
      addDisplay: false,
      editDisabled: true
    },
    {
      label: '组名',
      prop: 'attrGroupName'
    },
    {
      label: '排序',
      prop: 'sort'
    },
    {
      label: '描述',
      prop: 'descript'
    },
    {
      label: '组图标',
      prop: 'icon',
      type: 'icon',
      iconList: iconList,
      slot: true
    },
    {
      type: 'tree',
      label: '所属分类id',
      prop: 'catelogId',
      dicData: [],
      value: '0'
    }
  ]
}

export const treeOption = {
  accordion: true,
  defaultExpandAll: false,
  formOption: {
    labelWidth: 100,
    column: [{
      label: '自定义项',
      prop: 'test'
    }],
  },
  props: {
    labelText: '标题',
    label: 'label',
    value: 'value',
    children: 'children'
  }
}
